<?php

   $currentpage=substr($PHP_SELF,strrpos($PHP_SELF,"/")+1);

   if($currentpage=="user_edit.php"){
    $tplcontent['editinfo'].=">> <a href=\"user_edit.php?user=$user\"><b><i>Edit info</i></b></a> <<";
   }else{
   	$tplcontent['editinfo'].="<a href=\"user_edit.php?user=$user\">Edit info</a>";
   }
   if($currentpage=="user_options.php"){
   	$tplcontent['editoptions'].=">> <a href=\"user_options.php?user=$user\"><b><i>Edit options</i></b></a> <<";
   }else{
    $tplcontent['editoptions'].="<a href=\"user_options.php?user=$user\">Edit options</a>";
   }
   
   if($currentpage=="user_pass.php"){
   	$tplcontent['password'].=">> <a href=\"user_pass.php?user=$user\"><b><i>Change password</i></b></a> <<";
   }else{
    $tplcontent['password'].="<a href=\"user_pass.php?user=$user\">Change password</a>";
   }
   
   if($currentpage=="user_buddy.php"){
    $tplcontent['buddylist'].=">> <a href=\"user_buddy.php?user=$user\"><b><i>Buddy list</i></b></a> <<";
   }else{
    $tplcontent['buddylist'].="<a href=\"user_buddy.php?user=$user\">Buddy list</a>";	
   }
   
   if($currentpage=="user_pm.php"){
   	$tplcontent['pm'].=">> <a href=\"user_pm.php?user=$user\"><b><i>Private messages</i></b></a> <<";
   }else{
    $tplcontent['pm'].="<a href=\"user_pm.php?user=$user\">Private messages</a>";
   }

   echo template('userheader',$tplcontent);
   
?>
